Skip to content

Conversation

@dkropachev
Copy link
Collaborator

@dkropachev dkropachev commented Jun 5, 2025

Implement clustr.application_info to make driver send following startup options to server:

  1. APPLICATION_NAME - ID what application is using driver, example: repo of the application
  2. APPLICATION_VERSION - Version of the application, example: release version or commit id of the application
  3. CLIENT_ID - unique id of the client instance, example: pod name

All strings.

Fix: #485

Results:

cqlsh> SELECT * FROM system_views.clients;

 address    | port  | client_options                                                                                                                                                                             | connection_stage | driver_name            | driver_version | hostname   | keyspace_name | protocol_version | request_count | ssl_cipher_suite | ssl_enabled | ssl_protocol | username
------------+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+------------------------+----------------+------------+---------------+------------------+---------------+------------------+-------------+--------------+-----------
 172.17.0.1 | 55756 | {'APPLICATION_NAME': 'app_name', 'APPLICATION_VERSION': '1.1.1', 'CLIENT_ID': 'my_client_id', 'CQL_VERSION': '3.4.7', 'DRIVER_NAME': 'ScyllaDB Python Driver', 'DRIVER_VERSION': '3.29.3'} |            ready | ScyllaDB Python Driver |         3.29.3 | 172.17.0.1 |          null |                5 |            16 |             null |       False |         null | anonymous
 172.17.0.1 | 55762 | {'APPLICATION_NAME': 'app_name', 'APPLICATION_VERSION': '1.1.1', 'CLIENT_ID': 'my_client_id', 'CQL_VERSION': '3.4.7', 'DRIVER_NAME': 'ScyllaDB Python Driver', 'DRIVER_VERSION': '3.29.3'} |            ready | ScyllaDB Python Driver |         3.29.3 | 172.17.0.1 |          null |                5 |             1 |             null |       False |         null | anonymous

(4 rows)

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

@dkropachev dkropachev linked an issue Jun 5, 2025 that may be closed by this pull request
@dkropachev dkropachev self-assigned this Jun 5, 2025
@dkropachev dkropachev requested a review from Lorak-mmk June 5, 2025 02:20
Copy link

@Lorak-mmk Lorak-mmk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add an integration test running on C* that uses the new API and verifies the data in client_info.

@dkropachev dkropachev force-pushed the dk/485-report-application-information-to-server branch 3 times, most recently from d7d7385 to 7e0a9d2 Compare June 6, 2025 11:46
@dkropachev dkropachev requested a review from Lorak-mmk June 6, 2025 12:34
@dkropachev dkropachev force-pushed the dk/485-report-application-information-to-server branch from 7e0a9d2 to bb58890 Compare June 7, 2025 03:22
@dkropachev dkropachev requested a review from Lorak-mmk June 7, 2025 03:22
@dkropachev dkropachev force-pushed the dk/485-report-application-information-to-server branch 3 times, most recently from 276b6c1 to 7e32f87 Compare June 11, 2025 15:52
@dkropachev dkropachev force-pushed the dk/485-report-application-information-to-server branch from 7e32f87 to c23b6a8 Compare June 11, 2025 19:16
@dkropachev dkropachev requested a review from Lorak-mmk June 11, 2025 19:53
Implement clustr.application_info to make driver send following startup options to server:
1. `APPLICATION_NAME` - ID what application is using driver, example: repo of the application
2. `APPLICATION_VERSION` - Version of the application, example: release version or commit id of the application
3. `CLIENT_ID` - unique id of the client instance, example: pod name

All strings.
@dkropachev dkropachev force-pushed the dk/485-report-application-information-to-server branch from c23b6a8 to bbcd0dd Compare June 12, 2025 11:45
@dkropachev dkropachev requested a review from Lorak-mmk June 12, 2025 13:43
@dkropachev dkropachev merged commit 3f7bcbb into master Jun 12, 2025
18 checks passed
@dkropachev dkropachev deleted the dk/485-report-application-information-to-server branch September 4, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report application information to server

3 participants